package lab02.test12;

/**
 * Created by JAVA on 2017/10/20.
 */
public class Test {
    public static void main(String[] args) {
        //ctrl+alt+L格式化代码（调整代码）
        Circle c1=new Circle();
        c1.raduis=1.0;
        System.out.println("半径为1.0的圆的面积:"+c1.area() );
        System.out.println("半径为1.0的圆的周长:"+c1.perimeter());

        Rectangular rectangular=new Rectangular();
        rectangular.width =1.0;
        rectangular.height=2.0;
        System.out.println("宽为1.0,高为2.0的矩形的面积:"+rectangular.area() );
        System.out.println("宽为1.0,高为2.0的矩形的周长:"+rectangular.perimeter());
    }
}
